package interpreter.source;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cheng:
 * @date 2019/4/26 13:53
 */
public class Test {
    public static void main(String[] args) {
        Context context = new Context();
        List<AbstractExpression> expressions = new ArrayList<>();
        expressions.add(new TerminalExpression());
        expressions.add(new TerminalExpression());
        expressions.add(new NonterminalExpression());
        expressions.add(new TerminalExpression());

        for (AbstractExpression expression : expressions) {
            expression.interpret(context);
        }
    }
}
